09. Exercise: Setup Settings

Exercise Code

In this exercise, you will get to setup the settings activity.

Exercise: T06.01-Exercise-SetupTheActivity

Setup the Settings Activity

Now it's your turn to try setting up the Settings Activity yourself, follow the TODOs in the code comments and check them below once complete.

SOLUTION:
  • Create a new Activity called SettingsActivity
  • Create a new resource folder called menu
  • Create visualizer_menu.xml in menu and add a menu item in it
  • Add the menu to the menu bar
  • Handle "Settings" menu item click to open SettingsActivity
  • Make sure activity_settings.xml is in RelativeLayout